<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>#{msg['applicationshortname.label']} | #{pageName}</title>
 	<meta http-equiv="refresh" content="#{session.maxInactiveInterval};url=/wam/login.html" />
	<link type="text/css" rel="stylesheet" href="${request.contextPath}/resources/styles/wam.css" />
</h:head>

<h:body styleClass="body">
	<h:panelGrid styleClass="pnlGrd main" style="margin: 0 auto; width: 100%; text-align: left; ">
	
		
		<h:panelGrid columns="2" style=" width: 100%; margin-top: -2px; height: 34px; "> 
				<h:outputLabel value="#{msg['applicationname.label']}"
								style="color: white; font-size: 20px; font-weight:bold; 
								text-shadow: 0px -1px 0px rgba(0,0,0,.5);" />  
				<ui:insert name="loginUserInfo">
					<ui:include src="/WEB-INF/templates/logininfo-template.xhtml" />
				</ui:insert>
		</h:panelGrid>
		
		
		<h:panelGrid style=" margin-left: 2px; width: 100%; margin-top: -3px; border-bottom:1px solid #d9d9d9;">
			<h:panelGrid  style="width: 100%; margin-left: -4px;">
				<ui:insert name="submenu">
					<ui:include src="/WEB-INF/templates/submenu-template.xhtml" />
				</ui:insert>
			</h:panelGrid>

			<h:panelGrid style="text-align: center; width: 100%; margin-top: -4px;"
				styleClass="pnlGrd" columns="2"
				columnClasses="sidebarGrid, containerGridCell2">
				
				<h:panelGrid styleClass="sidebarcontent" style="margin-top: -4px; margin-left: -4px; " columnClasses="sidebarGrid">
					<ui:insert name="sidebar">
	                 
					</ui:insert>
				</h:panelGrid>
				<h:panelGrid
					style="width: 100%; text-align: left; padding: 0 0 10px 10px; ">
					<ui:insert name="content">
					</ui:insert>
				</h:panelGrid>
			</h:panelGrid>
		</h:panelGrid>


		<ui:insert name="footer">
			<h:outputLabel value="&#169; 2012 #{msg['companyname.label']}" 
				style="color: #888888; font-size: 12px; " />
			<h:outputText value="Supported browsers: IE9, Safari, Firefox, Chrome and Opera" style="color: #888888"/>	
		</ui:insert>


	</h:panelGrid>
</h:body>

</html>
